<?php

require_once __DIR__ . '/../bean/Serie.php';
require_once __DIR__ . '/abstract/AbstractDAO.php';

/**
 * DAO para objetos Serie.
 *
 * @author hyzandey
 */
class SerieDAO extends AbstractDAO{
    public function find(){
        
        $this->query = 'select * from serie order by serie';
        
        $this->executaQuery();
        
        $seriesList = array();
        
        while($row = $this->proximaLinhaResultado()){
            $seriesList[] = new Serie($row['serie']);
        }
        
        return $seriesList;
    }
}

?>
